package com.elong.businesstravel.protocol.order;

import org.apache.http.Header;
import org.json.JSONObject;

import com.android.support.jhf.debug.DebugLog;
import com.elong.businesstravel.protocol.baseresponse.BaseELongJsonHttpResponse;

public class AddcltreviewResponse extends BaseELongJsonHttpResponse {

	protected String msg = "";
	protected int status;
	protected String voiceUrl ="";
	
	@Override
	public void onSuccess(int statusCode, Header[] headers,
			JSONObject mainJsonObject) throws Throwable {
		DebugLog.logI(mainJsonObject.toString());
		JSONObject responseJsonObject = mainJsonObject.optJSONObject("response");
		status = responseJsonObject.optInt("status", -1);
		if(0 != status){
			msg = responseJsonObject.optString("msg","");
		}else {
			voiceUrl = responseJsonObject.optString("path","");
		}
	}

}
